package com.gitee.webdav.kernel;

/**
 * @author hongda.li@hand-china.com
 */
public final class Constants {
    private Constants() {
    }

    public static final class Configure {
        @Remark("端口号")
        public static final String PORT = "webdav.port";

        @Remark("根路径")
        public static final String ROOT = "webdav.root";

        @Remark("读缓存")
        public static final String READ_BUFFER = "webdav.readBufferSize";

        @Remark("写缓存")
        public static final String WRITE_BUFFER = "webdav.writeBufferSize";

        @Remark("默认端口号")
        public static final int PORT_VALUE = 7268;

        @Remark("默认根目录")
        public static final String ROOT_VALUE = "/data";

        private Configure() {
        }
    }

    public static final class HttpHeader {
        private HttpHeader() {
        }

        @Remark("DAV响应头")
        public static final String DAV = "DAV";

        @Remark("DAV支持级别，只读级别")
        public static final String DAV_LEVEL_ONE = "1";

        @Remark("断点续传响应头")
        public static final String RANGE_VALUES = "bytes";

        @Remark("断点续传响应范围")
        public static final String RANGE_FORMAT = "bytes %s-%s/%s";

        @Remark("断点续传分隔符")
        public static final String EQUAL = "=";

        @Remark("递归深度请求头")
        public static final String DEPTH = "Depth";
    }
}
